home *** CD-ROM | disk | FTP | other *** search
- -- card: 6844 from stack: in
- -- bmap block id: 7137
- -- flags: 4000
- -- background id: 4114
- -- name: A,c known
- ----- HyperTalk script -----
- on mouseUp
- set numberFormat to <0.000000>
-
- --Calculate Angle B
- get bkgnd field "Angle C"
- put it into mem1
- get card field "Angle A"
- put it into mem2
- get mem1-mem2
- put it into card field "Angle B"
-
- --Calculate Tan A
- get tan(mem2*(pi/180))
- put it into mem3
- put it into card field "tan A"
-
- --Calculate Sin A
- get sin(mem2*(pi/180))
- put it into mem4
- put it into card field "sin A"
-
- --Calculate Cos A
- get mem4/mem3
- put it into mem5
- put it into card field "cos A"
-
- --Calculate Side a
- get card field "side c"*mem4
- put it into card field "side a"
-
- --Calculate Side b
- get card field "side c"*mem5
- put it into card field "side b"
-
- --Calculate Area
- get card field "side a"*card field "side b"/2
- put it into bkgnd field "Area"
-
- --Calculate Perimeter
- get card field "side a"+card field "side b"+card field "side c"
- put it into bkgnd field "Perimeter"
- end mouseUp
-
-
- -- part 1 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=22 top=217 right=234 bottom=150
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: angle A
-
-
- -- part 2 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=51 top=137 right=154 bottom=184
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: side c
-
-
- -- part 3 (field)
- -- low flags: 01
- -- high flags: 0004
- -- rect: left=245 top=85 right=104 bottom=373
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name: angle B
-
-
- -- part 4 (field)
- -- low flags: 01
- -- high flags: 0004
- -- rect: left=347 top=144 right=163 bottom=475
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name: side a
-
-
- -- part 5 (field)
- -- low flags: 01
- -- high flags: 0004
- -- rect: left=112 top=263 right=282 bottom=240
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name: side b
-
-
- -- part 6 (field)
- -- low flags: 01
- -- high flags: 0001
- -- rect: left=387 top=208 right=220 bottom=447
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: tan A
-
-
- -- part 7 (field)
- -- low flags: 01
- -- high flags: 0001
- -- rect: left=387 top=224 right=236 bottom=447
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: sin A
-
-
- -- part 8 (field)
- -- low flags: 01
- -- high flags: 0001
- -- rect: left=387 top=240 right=252 bottom=447
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: cos A
-
-
- -- part contents for card part 2
- ----- text -----
- 1.414214
-
- -- part contents for card part 1
- ----- text -----
- 45
-
- -- part contents for background part 3
- ----- text -----
- 90
-
- -- part contents for card part 3
- ----- text -----
- 45.000000
-
- -- part contents for card part 6
- ----- text -----
- 1.000000
-
- -- part contents for card part 7
- ----- text -----
- 0.707107
-
- -- part contents for card part 8
- ----- text -----
- 0.707107
-
- -- part contents for card part 4
- ----- text -----
- 1.000000
-
- -- part contents for card part 5
- ----- text -----
- 1.000000
-
- -- part contents for background part 5
- ----- text -----
- 0.500000
-
- -- part contents for background part 9
- ----- text -----
- 3.414214